package com.service.impl;

import com.dao.CommentDao;
import com.entity.BlogType;
import com.entity.Comment;
import com.service.CommentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service("commentService")
public class CommentServiceImp implements CommentService {
    @Resource
    private CommentDao commentDao;
    @Override
    public Comment findCommentById(Integer id) {
        return  commentDao.findCommentById(id);
    }
    @Override
    public List<Comment> list(Map<String, Object> map) {
        return commentDao.list(map);
    }
    @Override
    public Long getTotal(Map<String, Object> map) {
        return commentDao.getTotal(map);
    }

    @Override
    public Integer delete(Integer id) {
        return commentDao.delete(id);
    }
//    @Override
//    public Integer addComment(Comment comment) {
//        return commentDao.addComment(comment);
//    }
//
//    @Override
//    public Integer delComment(Integer id) {
//        return commentDao.delComment(id);
//    }
}
